package com.maxd.modules.syslog.utils;

import com.maxd.modules.coupon.entity.CouponOrderDetail;
import com.maxd.modules.syslog.entity.RequestLogs;

/**
 * @Auther: Laban:yubo_010@163.com
 * @Date: 2020/11/18 10:20
 * @Description:
 */
public class RequestLogsUtil {

    /**
     * ""转null
     */
    public RequestLogs copyNull(RequestLogs requestLogs){
        if("".equals(requestLogs.getRequestTime())){
            requestLogs.setRequestTime(null);
        }
        if("".equals(requestLogs.getRequestMethodName())){
            requestLogs.setRequestMethodName(null);
        }

        return requestLogs;
    }

}
